package game.spider.peri;

import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import net.ds0101.framework.android.neox.main.NXDirector;
import net.ds0101.framework.android.neox.main.NXScene;
import net.ds0101.framework.android.neox.widget.NXLabel;

public class StartLogo extends NXScene {

	public StartLogo(Context context) {
		super(context);
	}

	@Override
	public void onEnter() {
		super.onEnter();
		Log.w("[NEOX]", "scene w = " + String.valueOf(NXDirector.getScreenWidth() + " h = " + String.valueOf(NXDirector.getScreenHeight())));
		addChild(new NXLabel("Dream Dance", 60, NXDirector.getScreenHeight() / 2, 60, Color.YELLOW), 0);
		addChild(new NXLabel("Tap screen start game",  140, NXDirector.getScreenHeight() / 2 + 30, 20, Color.GREEN), 0);
	}
	
	@Override
	public void update(int arg0) {
	}
	
	public boolean onTouchEvent(MotionEvent event) {
		boolean ret = super.onTouchEvent(event);
		director().replaceWithScene(new MainMenu(getContext()));
		return ret;
	}

	@Override
	public void onScreenSizeChanged(int newWidth, int newHeight) {
		// TODO Auto-generated method stub
		
	}

}
